# -*- coding:utf-8 -*-
import os,time
import configparser

#获取当前根目录的路径
RootPath = os.path.dirname(os.path.abspath(__file__))


# 读取到本机的配置文件
curpath = os.path.dirname(os.path.realpath(__file__))
cfgpath = os.path.join(curpath, "config.ini")

conf = configparser.ConfigParser()
conf.read(filenames=cfgpath)

# 测试报告
report_name = conf.get('report', 'report_name')
report_title = conf.get('report', 'report_title')
report_describe = conf.get('report', 'report_describe')
report_path = conf.get('report', 'report_path')
report_file = str(int(time.time())) + '.html'
report_user = conf.get('report', 'report_user')

# 登录页url
login_url = conf.get('url', 'login_url')
index_url = conf.get('url', 'index_url')
# 登录数据
company = conf.get('login_data', 'company')
account = conf.get('login_data', 'account')
password = conf.get('login_data', 'password')